package club.emergency.wechat.model.dictionary;

import club.emergency.wechat.model.GenericEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 父字典pojo
 * </p>
 *
 * @author jifujun
 * @since 2018-11-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class DictionaryChild extends GenericEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 关键字，从父字典获取
     */
    private String keyName;

    /**
     * 对应的内容
     */
    private String content;

    /**
     * 父id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;

    /**
     * 别名
     */
    private String alias;
}
